package annotation.cal;

public class Calculator {

    @Check
    public void add(){
        System.out.println("1 + 2 = 3");
    }

    @Check
    public void sub(){
        System.out.println("5 - 2 = 3");
    }

    @Check
    public void mul(){
        System.out.println("5 * 2 = 10");
    }

    @Check
    public void division(){
        int i = 1/0;
        System.out.println("1 /0");
    }

    public String toString(){
        System.out.println("hello world");
        return null;
    }

}
